/* eslint-disable */
function removal(a) {
    let newArr = a.reduce(
        (unique, item) => (unique.includes(item) ? unique : [...unique, item]),
        []
    );
    return newArr;
}
/**
 * 通过js代码，让某个文件单独打包成一个chunk
 * import动态导入语法：能将某个文件单独打包
 */
import(/* webpackChunkName:'other' */ './other')
    .then(({ sum, take }) => {
        console.log(sum(3, 5));
    })
    .catch(() => {
        console.log('文件加载失败');
    });
console.log(removal(['4', '5', '6', '5', '8']));
